<?php
/*
 * 参数提交页面
 */
	
include 'config.php';
include 'lib.php';

	$partner = $_POST['partner'];
	$md5key = $_POST['md5key'];
	$pay_service_type = $_POST['pay_service_type'];
	$pay_bank_code = $_POST['pay_bank_code'];
	$pay_date = $_POST['pay_date'];
	$pay_order_id = $_POST['pay_order_id'];
	$pay_product_name = $_POST['pay_product_name'];
	$pay_amount = $_POST['pay_amount'];
	$pay_remark = $_POST['pay_remark'];
	$pay_notify_url = $_POST['pay_notify_url'];
	$pay_return_url = $_POST['pay_return_url'];
	@$pay_extend1 = $_POST['pay_extend1'];
	@$pay_extend2= $_POST['pay_extend2'];



//构造要加密的参数数组
	$data = array(
		"partner"	=> $partner,
		//"md5key"	=> $md5key,  
		"pay_input_charset"	=> '1',
		"pay_service_type"	=> $pay_service_type,
		"pay_date"  =>$pay_date,
		"pay_order_id"  =>$pay_order_id,
		"pay_product_name"  => $pay_product_name,
		"pay_amount"  => $pay_amount,
		"pay_notify_url"	=> $pay_notify_url,	
		"pay_return_url"	=> $pay_return_url,			
	);
	$key = $md5key;
	$sign = createSign($data,$key);
	
	$data['pay_sign'] = $sign;
	$data['pay_bank_code'] = $pay_bank_code;
	$data['pay_remark'] = $pay_remark;
	$data['pay_extend1'] = $pay_extend1;
	$data['pay_extend2'] = $pay_extend2;
	//$data['pay_extend3'] = '1111';
	//$rs = httpClient($data,PAY_URL);
	$rs = request_form($data,PAY_URL);
	echo $rs;
?>

